home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG Revelations
/
BMUG Revelations.toast
/
Programming
/
Programming Languages
/
Yerk 3.64
/
Supplement
/
my stuff
/
arcsin
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-12-31
|
283 b
|
14 lines
|
[
TEXT/MACA
]
\ rfl - useful definitions of arcSin and arcCos
: arcsin { %x -- f }
%x fabs .3 f>=
IF %x %x 1. f+ 1. %x f- f* sqrt f/ arctan
ELSE %x fabs f0>
IF %x 1. %x %x f* f- sqrt f/ arctan
ELSE 0.
THEN
THEN ;
: arccos { %x -- f }
1. %x f- 1. %x f+ f/ sqrt arctan 2. f* ;